setProgress
Sets the current progress to the specified value. Does not do anything if the progress bar is in indeterminate mode.
This method will immediately update the visual position of the progress indicator. To animate the visual position to the target value, use setProgress}.
Parameters
See also
Sets the current progress to the specified value, optionally animating the visual position between the current and target values.
Animation does not affect the result of getProgress, which will return the target value immediately after this method is called.